package cn.izeno.wx.core

import okhttp3.MultipartBody
import okhttp3.RequestBody
import java.io.File

fun File.zzPart(partName: String): MultipartBody.Part {
  val bodyPart = RequestBody.create(null, this)
  return MultipartBody.Part.createFormData(partName, name, bodyPart)
}